package com.awakensoftware.communicationprotocol.restwrappers;

import com.awakensoftware.communicationprotocol.contractobjects.ContractObjectBase;

public class Wrapper<TContractObjectType extends ContractObjectBase> {

	private TContractObjectType contractObject;

	public Wrapper(TContractObjectType contractObject) {
		this.contractObject = contractObject;
	}

	public String getContractObjectType() {
		return contractObject == null ? null : contractObject.getObjectType();
	}

	public TContractObjectType getContractObject() {
		return contractObject;
	}

}
